<?php

namespace App\Models;


use App\Service\Base\Model;

class UserKeyword extends Model
{

    // 用户管理
    protected $table = 'user_keyword';
    const UPDATED_AT = null;

    // 缓存字段，用于搜索绑定的字段
    protected $cacheFields = ['id', 'uid',];

    // 定义验证操作
    public function rules()
    {

        $add = [
        ];

        $edit = [
        ];

        $info = [
        ];


        $rule = [
            'uid' => 'required',
        ];


        $msg = [
            'id'         => '编号',
            'uid'        => '用户id',
            'en_keyword' => '热门词：英文',
            'cn_keyword' => '关键词：简体',
            'tc_keyword' => '关键词：繁体',
            'number'     => '次数',
            'ctime'      => '创建时间',
            'mtime'      => '修改时间',
        ];

        return ['rule' => $rule, 'msg' => $msg, 'add' => $add];
    }
}
